﻿/*--------------------------------------------------------------
 * Author : Shine K Velayudhan 
 ---------------------------------------------------------------*/
using System.Runtime.Remoting.Contexts;
using System;
namespace IQN.Logging
{
    [AttributeUsage(AttributeTargets.Class)]
    public class LoggerAttribute : Attribute,IContextAttribute
    {
        public LoggerAttribute() { }
        public void GetPropertiesForNewContext(System.Runtime.Remoting.Activation.IConstructionCallMessage msg)
        {
            LoggerProperty property = new LoggerProperty();
            msg.ContextProperties.Add(property);
        }
        public bool IsContextOK(Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg)
        {
            return false;
        }
    }
}
